import request from '@/utils/request'

// 查询itema列表
export function listItema(query) {
  return request({
    url: '/charge/itema/list',
    method: 'get',
    params: query
  })
}

// 查询itema详细
export function getItema(chargeItemId) {
  return request({
    url: '/charge/itema/' + chargeItemId,
    method: 'get'
  })
}

// 新增itema
export function addItema(data) {
  return request({
    url: '/charge/itema',
    method: 'post',
    data: data
  })
}

// 修改itema
export function updateItema(data) {
  return request({
    url: '/charge/itema',
    method: 'put',
    data: data
  })
}

// 删除itema
export function delItema(chargeItemId) {
  return request({
    url: '/charge/itema/' + chargeItemId,
    method: 'delete'
  })
}
